package com.sntk.organauthomanager.application.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @作者：wgchao
 * @时间：20:45 2020/6/14 0014
 * @用途：
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ApiModel(value = "pageData", description = "返回分页查询信息")
public class PageData<T> implements Serializable {

    @ApiModelProperty(value="数据总数", name="total", required=true)
    private Long total;

    @ApiModelProperty(value="页码", name="curr", required=true)
    private int curr;

    @ApiModelProperty(value="分页查询数据", name="data", required=true)
    private List<T> data;

}
